#include "mainwindow.h"
#include "routemanagerdialog.h"
#include <QApplication>
#include <QCoreApplication>
#include <QStringList>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QStringList args = QCoreApplication::arguments();
    if (args.contains("--route-manager")) {
        RouteManagerDialog dlg;
        return dlg.exec();
    }
    MainWindow w;
    w.show();
    return a.exec();
} 